import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
/*
  Generated class for the HttpSeriveProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class HttpSeriveProvider {
  api: string = 'http://120.78.237.154:8080/';



  constructor( 
    public http: HttpClient,
  ) {}

  get(url: string, options?) {
    return this.http.get(url, options);
  }

  post(url: string, body?: any | null, options?: any) {
    return this.http.post(url, body, options);
  }

  put(url: string, body?: any, options?: any) {
    return this.http.put(url, body, options);
  }

  delete(url: string, option?: any) {
    return this.http.delete(url, option);
  }

}
